package com.aliang.shopping.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(description = "树形展示对象")
public class TreeVO implements Serializable {
    /**
     * 数据ID
     */
    @ApiModelProperty("数据ID")
    private Long value;
    /**
     * 分类名
     */
    @ApiModelProperty("分类名")
    private String label;

    /**
     * 子分类
     */
    @ApiModelProperty("子分类")
    private List<TreeVO> children;
}
